package com.yh.csx.business.api.entity;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @创建人 霍钧城
 * @创建时间 2020年12月10日 14:51:00
 * @描述 分页响应
 */
@Data
public class Page<T> implements Serializable {

    private int pageNum;

    private int pageSize;

    private int totalNum;

    private List<T> data;

    public Page(int pageNum,int pageSize, int totalNum,List<T> data){
        this.pageNum=pageNum;
        this.pageSize=pageSize;
        this.totalNum=totalNum;
        this.data=data;
    }

    private int startRow;

    private int endRow;

    private int pages;

    private int prePage;

    private int nextPage;

    private boolean isFirstPage = false;

    private boolean isLastPage = false;

    private boolean hasPreviousPage = false;

    private boolean hasNextPage = false;

    private int navigatePages;

    private int[] navigatepageNums;

    private int navigateFirstPage;

    private int navigateLastPage;

    private long total;

}